package com.example.demo.Service;

import com.example.demo.Dao.QuestionMapper;
import com.example.demo.Entity.Disease;
import com.example.demo.Entity.Question;
import com.example.demo.Vo.QuestionAndScore;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface QuestionService {
    public List<Question> findAll();
    public Question findById(Integer id);
    public QuestionAndScore get_most_sim(String question);

    public void addQuestion(String question,String answer);
    public void deleteQuestion(Integer qid);
    public void updateQuestion(Integer qid,String question,String answer);

    public PageInfo<Question> findPageByName(Integer pageNum, Integer pageSize);
}
